How to filter character in PHP
The configuration and functions associated with the PHP string escape are as follows:1.magic_quotes_runtime2.magic_quotes_gpc3.addslashes () and Stripslashes ()4.mysql_escape_string ()5.addcslashes () and
Php form submission special character filtering method
This article describes how to filter Special characters when submitting data in php forms. learn how php filters special characters and what character filtering functions are available.
Sometimes, to be safe, we need to escape the strings entered by the user. There is an incorrect or ambiguous place in the article, please point out the problem ~ ~ ~The configuration and functions associated with the PHP string escape are as follows:
PHP character escape Function Summary. sometimes, for the sake of security, we need to escape the character strings entered by the user, which may be incorrect or obscure ~~~
Configurations and functions related to PHP string escaping are as
PHP character escape function summary (the escape string in php ). The article contains incorrect or ambiguous words. please point out ~~~ Configurations and functions related to PHP string escaping are as follows: 1.
In the Web development process, we often have to get data from users from all over the world. However, we "can never trust the data entered by those users." Therefore, in a variety of web development languages, will provide a guarantee of user input
Many times, some text is fetched from a third party, and an escape error occurs. Now summarize some of the escape functions that PHP comes with, as shown in
Name of function
Interpretation
Introduced
Several PHP functions related to special character handling
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
&
Several PHP functions related to special character handling
Name of function
Interpretation
Introduced
Htmlspecialchars
Combine with, single double quotes, greater than, and less than sign into HTML format
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.